/* eslint-disable react/prop-types */
import React from 'react';
import { withRouter } from 'react-router-dom';
import '../../mysite.scss';
import Title from '@/components/mysite/titleWithBack'
import RichForm from './form';

class DocsDetail extends React.Component {
    constructor(props) {
        super(props)
        this.state = {}
    }

    render() {
        let query = this.props.location.state
        let title;
        if (query) {
            title = '修改文档内容'
        } else {
            title = '新建文档'
        }
        return (
            <div className="detail_page">
                <Title title={title} />
                <div className="detail_form">
                    <RichForm></RichForm>
                </div>
            </div>
        )
    }
}
export default withRouter(DocsDetail)
